
/*****************************************************************************/
/*	//该页面定义如下函数：													 */
/*	(1) abstractOpen(url,title,feature);						抽象,打开窗口*/
/*	(2) openMinWindow(url,title);								打开小窗口	 */
/*	(3) openMaxWindow(url,title);								打开大窗口	 */
/*	(4) openMidWindow(url,title);								打开中大窗口 */
/*	(5) openCenter(url,title,subfeature,width,height);			居中打开	 */
/*****************************************************************************/ 


//抽象,打开窗口
function abstractOpen(url,title,feature)
{
	return window.open(url,title,feature);
} 

//打开小窗口
function openMinWindow(url,title)
{
	var feature="toolbar=no, menubar=no,scrollbars=yes, resizable=yes,location=no,status=no,";
	return openCenter(url,title,feature,400,350);
}

//打开大窗口
function openMaxWindow(url,title)
{
	var feature="channelmode=yes, toolbar=auto, menubar=no,scrollbars=yes, resizable=yes,location=no,status=no";
	return abstractOpen(url,title,feature);
}

//打开中大窗口
function openMidWindow(url,title)
{
	var feature="toolbar=no, menubar=no,scrollbars=no, resizable=yes,status=no,";
	return openCenter(url,title,feature,700,500);
}

//打开中大窗口
function openStatusedMidWindow(url,title)
{
	var feature="toolbar=no, menubar=no,scrollbars=yes, resizable=yes,status=no,";
	return openCenter(url,title,feature,700,500);
}

//居中打开
function openCenter(url,title,subfeature,width,height)
{	
	var feature=subfeature+"width="+width+",height="+height+",left=" + (screen.width-width)/2 + ",top=" + (screen.height-height)/2;
	return abstractOpen(url,title,feature);
}